Skip to main content

EXECMODULE: Files

Setting Up the Files Execution Module

To use the Files execution module, you will need to set up a sandbox directory. This is essential for managing files securely within your application.

Configuration Steps

Step 1: Create the Sandbox Directory

Create a directory that will serve as your sandbox for file operations. This directory should be secure and isolated from other application files.

mkdir /somewheresafe/<sandbox>

Step 2: Set Permissions

Ensure that the sandbox directory has the appropriate permissions to prevent unauthorized access. You can set the permissions using the following command:

chmod 700 /somewheresafe/<sandbox>

Step 3: Update Your Configuration

Once you have your sandbox directory set up, update your application’s configuration file with the following details:

files:
sandbox: "/somewheresafe/<sandbox>"

Important Note

Never allow executable files to be moved, copied, or downloaded into this directory. This is crucial for maintaining the security of your application.

Step 4: Test Your Configuration

After updating your configuration, it’s time to test it! Ensure that your application can read from and write to the sandbox directory without issues. If you encounter any problems, double-check your settings and permissions.

Common Issues and Troubleshooting

  • Permission Denied: If you receive a permission denied error, ensure that the directory permissions are set correctly.
  • File Not Found: Verify that the path to the sandbox directory is correct in your configuration.

Now you’re all set to start managing files with the Files execution module! Happy file handling!